package com.lagou.edu;

import com.lagou.edu.factory.BeanFactory;
import com.lagou.edu.pojo.Person;
import com.lagou.edu.pojo.Xiaoming;
import org.junit.Test;

import java.util.HashMap;
import java.util.Map;

public class Tests {
    @Test
    public void test(){
        Person person=new Person();
        Map<String,Object>maps=new HashMap<>();
        maps.put("person",person);
        Xiaoming xiaoming=new Xiaoming();
        person.setXiaoming(xiaoming);


    }

    @Test
    public void testGetBean(){
        Object proxyFactory = BeanFactory.getBean("proxyFactory");
        System.out.println("proxyFactory:" + proxyFactory);
    }


}
